现在我们将在每次循环遍历 row 循环时,更改变量 y 的值来重复这些列!

  • 在 column 循环后和 row 循环内部,创建值为 -200 Integer Variable x
  • 拖入 Subtract Value 并将其放置在 row 循环内部的整数变量下方。
  • 将名称更改为 y ,并将值更改为 30

这将复制顶部的砖块行4次。每次高度将比前一行低30个像素。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)